import Login from '../pages/login/index'
import Layout from "../pages/layout/index";
import Main from "../pages/main/index";


import AuthRouter from './AuthRouter';
import client from './modules/client/client';
import order from './modules/order/order';
import rowclass from './modules/rowclass/rowclass';
import subscribe from './modules/subscribe/subscribe';
import cure from './modules/cure/cure'
import ripe from './modules/ripe/ripe'
import statistics from './modules/statistics/statistics'


const Routes = [
    {
        path: "/login",
        element: <Login></Login>
    }, {
        path: "/",
        element: <AuthRouter><Layout /></AuthRouter>,
        children: [{
            path: "",
            element: <Main></Main>
        },
            client,
            order,
            rowclass,
            subscribe,
            cure,
            ripe,
            statistics
        ]
    }
]

export default Routes;